package com.tn.exam.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * InfoTasksStudent entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "info_tasks_student")
public class InfoTasksStudent extends BaseEntity implements java.io.Serializable {

	// Fields

	private Integer tasksStudentId;
	private Integer studentId;
	private Integer tasksId;

	// Constructors

	/** default constructor */
	public InfoTasksStudent() {
	}

	/** full constructor */
	public InfoTasksStudent(Integer studentId, Integer tasksId) {
		this.studentId = studentId;
		this.tasksId = tasksId;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "tasks_student_id", unique = true, nullable = false)
	public Integer getTasksStudentId() {
		return this.tasksStudentId;
	}

	public void setTasksStudentId(Integer tasksStudentId) {
		this.tasksStudentId = tasksStudentId;
	}

	@Column(name = "student_id", nullable = false)
	public Integer getStudentId() {
		return this.studentId;
	}

	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}

	@Column(name = "tasks_id", nullable = false)
	public Integer getTasksId() {
		return this.tasksId;
	}

	public void setTasksId(Integer tasksId) {
		this.tasksId = tasksId;
	}

}